package com.eliza.springboot.v3.http.control.actuator

import com.eliza.springboot.v3.actuator.meteric.MyMeterRegistry
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/actuator")
class ActuatorController {
    @Autowired
    lateinit var registry: MyMeterRegistry

    @GetMapping("/string")
    fun bookById(): String {
        registry.hello()
        return "hahahaha"
    }

}